#pragma once
#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "../common/Common.h"
USING_NS_CC;

class MainUILock : public cocos2d::Node
{
public:
	MainUILock();
	~MainUILock();
public:
	static cocos2d::Node* createNode();
	virtual bool init();
	CREATE_FUNC(MainUILock);

public:
	Sprite* m_lockBtn;
	Sprite* m_nameBtn;
	cocos2d::ui::Text* m_nameText;
	cocos2d::ui::Text* m_levelText;
	cocos2d::ui::LoadingBar* m_hp_Bar;
	cocos2d::ui::Text* m_hp_text;
	Sprite* m_background;
	vector<Sprite*> m_controlList;
	Sprite* m_selectedNode;
public:
	bool TouchDown(Touch* touch);
	void TouchMove(Touch* touch);
	bool TouchUp(Touch* touch);

	void RefreshData();
	void ShowObject();
	void HideObject();
};
